package com.qidi.rabbit.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestRabbiMq {
	@Autowired
	private HelloSender helloSender;

	@RequestMapping("/test")
	public void oneToMany() throws Exception {
		User user = new User();
		user.setEmail("clypm@126.com");
		user.setPassword("123456");
		helloSender.send(user);
	}
}
